package seg.tef4.whms.apis;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Query;
import seg.tef4.whms.domain.model.LoginBody;

public interface UserApi {

    /**
     * 用户登陆
     * @param loginBody
     * @return
     */
    @POST("login")
        public Call<ResponseBody> userLogin(@Body LoginBody loginBody);

    @GET("getInfo")
    public Call<ResponseBody> getInfo(@Header("Authorization") String token);

    @GET("loginNFC")
    public Call<ResponseBody> userLoginNFC(@Query("nfc") String nfc);

}
